package com.example.util;

import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Component;

/**
 * @Description //TODO
 * @Date 2022/9/14 14:29
 * @Author lonng
 **/
@Component
public class JsonUtil {
    public String getJson(Object obj){
        return JSON.toJSONString(obj);
    }
    public JSON cheakString(String str){return JSON.parseObject(str);}

}
